<template>
  <div class="list-component">
    <ul v-if="items.length">
      <li v-for="(item, index) in items" :key="index">
        {{ item.title }} - {{ item.description }}
      </li>
    </ul>
    <p v-else>No items to display.</p>
  </div>
</template>

<script>
export default {
  name: 'ListComponent',
  props: {
    items: {
      type: Array,
      required: true,
    },
  },
};
</script>

<style scoped>
.list-component {
  /* Add your custom styles here */
}
</style>